@extends('layouts.app')
@section('content')

    <div class="container mx-auto">

        <div class="flex">

            <div class="card w-1/4 mr-10 bg-base-200 justify-content-start shadow-xl flex items-center px-4 py-2 mt-10">
                <ul class="menu bg-base-200 w-full">
                    <li><a href="/userCenter"  @if(request()->getRequestUri() == '/userCenter') class="active" @endif  >我的资料</a></li>
                    <li><a href="/userCenter?type=level" @if(request()->getRequestUri() == '/userCenter?type=level') class="active" @endif >我的权益</a></li>
                    <li><a href="/userCenter?type=records" @if(request()->getRequestUri() == '/userCenter?type=records') class="active" @endif >借阅记录</a></li>

                    @if(auth()->user()->is_manage == 2)
                    <li><a href="/userCenter?type=audit" @if(request()->getRequestUri() == '/userCenter?type=audit') class="active" @endif >借阅审核</a></li>
                    @endif
                </ul>
            </div>

            <div class="card w-full bg-base-100  shadow-xl   p-4  mt-10">
                @if(request()->getRequestUri() == '/userCenter')
                    @include('user.widgets.updateUserInfo')
                @endif

                    @if(request()->getRequestUri() == '/userCenter?type=level')
                        @include('user.widgets.level')
                    @endif
                    @if(request()->getRequestUri() == '/userCenter?type=records')
                        @include('user.widgets.records')
                    @endif
                    @if(request()->getRequestUri() == '/userCenter?type=audit')
                        @include('user.widgets.audit')
                    @endif
            </div>

        </div>

    </div>

@endsection
